package com.tang.campus_market.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("test") //对应数据库中的表
public class Test {
    @TableId(value = "id",type = IdType.AUTO)
    private int id;
    private String name;
}
